Skip to content

feat(agent-audit): scan OpenCode plugins for malware shapes + secrets - #154

Merged
sandstream merged 1 commit into
mainfrom
feat/agent-audit-opencode-plugins
Jun 27, 2026
Merged

sandstream merged 1 commit into
mainfrom
feat/agent-audit-opencode-plugins

Conversation

@sandstream

Copy link
Copy Markdown
Owner

Part of #117 (OpenCode follow-ups) — adds the plugin/hook audit piece.

OpenCode plugins (.opencode/plugin/*.{js,ts}) run on load and can hook tool execution (tool.execute.before) — an unwatched code-execution surface, same class as a Claude plugin but previously unscanned. This adds .opencode/plugin to the agent-audit directory sweep and .ts to the scanned extensions, so OpenCode plugins are checked for malware shapes (warn) and plaintext secrets (critical), exactly like the Claude command/agent/skill/plugin surfaces.

Tests: malware-shaped + secret-bearing OpenCode plugin. Full suite 1835/0, format/lint clean.

The remaining #117 items (live-verify the memory parser against a real install; SQLite-backed layout) still need a real OpenCode install / further research and stay open there.


🤖 Generated with Claude Code

https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg


Generated by Claude Code

OpenCode plugins (`.opencode/plugin/*.{js,ts}`) run on load and can hook tool
execution (`tool.execute.before`) — an unwatched code-execution surface, same
class as a Claude plugin but previously unscanned. Add `.opencode/plugin` to the
agent-audit dir sweep and `.ts` to the scanned extensions (OpenCode/TS plugins),
so they're checked for malware shapes (warn) and plaintext secrets (critical)
like the Claude command/agent/skill/plugin surfaces.

Part of #117 (OpenCode follow-ups). Tests: malware-shaped + secret-bearing
OpenCode plugin. Full suite green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ERHw6bVUz39sAuoQZ1iyg
@github-actions

Copy link
Copy Markdown

✅ Docker image built successfully

  • CLI image: docker.io/sandstream/kit:test

@sandstream
sandstream merged commit bc71043 into main Jun 27, 2026
16 checks passed
@sandstream
sandstream deleted the feat/agent-audit-opencode-plugins branch June 30, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants